home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 15
/
Aminet 15 - Nov 1996.iso
/
Aminet
/
dev
/
gcc
/
ixemsdk.lha
/
man
/
cat3
/
ffs.0
< prev
next >
Wrap
Text File
|
1996-09-02
|
763b
|
25 lines
FFS(3) UNIX Programmer's Manual FFS(3)
NNAAMMEE
ffffss - find first bit set in a bit string
SSYYNNOOPPSSIISS
##iinncclluuddee <<ssttrriinngg..hh>>
_i_n_t
ffffss(_i_n_t _v_a_l_u_e)
DDEESSCCRRIIPPTTIIOONN
The ffffss() function finds the first bit set in _v_a_l_u_e and returns the index
of that bit. Bits are numbered starting from 1, starting at the right-
most bit. A return value of 0 means that the argument was zero.
SSEEEE AALLSSOO
bitstring(3)
HHIISSTTOORRYY
The ffffss() function appeared in 4.3BSD.
BSD Experimental April 19, 1991 1